package com.sgb.kjwl.api.service;

import com.sgb.kjwl.model.entity.transport.MapGoodsBiddingEntity;
import com.swgk.core.base.model.entity.ListResponse;
import com.swgk.core.base.model.entity.BaseEntity;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface TransAPI {

    //议价
    @POST("v1/app/logistics/order/counterOffer")
    Call<BaseEntity> counterOffer(@Body MapGoodsBiddingEntity entity);

    //下单
    @POST("v1/app/logistics/order/placeOrder")
    Call<BaseEntity> placeOrder(@Body MapGoodsBiddingEntity entity);

    //选择货源
    @FormUrlEncoded
    @POST("v1/app/logistics/order/getMyGoodsSourceList")
    Call<BaseEntity<ListResponse<List<MapGoodsBiddingEntity>>>> getMyGoodsSourceList(@Field("limit") int limit, @Field("page") int page);

 /*   //工队报价列表
    @FormUrlEncoded
    @POST("v1/app/packer/categoryList")
    Call<BaseEntity<List<PickSelectEntity>>> getProjectFilter(@Field("areaCode") String areaCode);

    //二三级
    @FormUrlEncoded
    @POST("v1/app/packer/getSecondCategory")
    Call<BaseEntity<List<PickSelectEntity>>> getSecthiCategory(@Field("cid1") String cid);

    @FormUrlEncoded
    @POST("v2/app/packer/getOccupation")
    Call<BaseEntity<List<PickSelectEntity>>> getWorkType(@Field("areacode") String areacode,
                                                         @Field("firstCategoryNo") String firstCategoryNo,
                                                         @Field("secondCategoryNo") String secondCategoryNo,
                                                         @Field("thirdCategoryNo") String thirdCategoryNo);

    @FormUrlEncoded
    @POST("v2/app/packer/teamPriceDetail")
    Call<BaseEntity<TeamPriceDetail>> getDetail(@Field("no") String no, @Field("areacode") String areacode);


    @FormUrlEncoded
    @POST("v1/app/common/getUrlSetting")
    Call<BaseEntity<H5ReEntity>> getUrlSetting(@Field("param") String param);*/
}
